import request from '@/utils/request'

// 查询故障报修管理列表
export function listManagement1(query) {
  return request({
    url: '/system/management1/list',
    method: 'get',
    params: query
  })
}

// 查询故障报修管理详细
export function getManagement1(repairCode) {
  return request({
    url: '/system/management1/' + repairCode,
    method: 'get'
  })
}

// 新增故障报修管理
export function addManagement1(data) {
  return request({
    url: '/system/management1',
    method: 'post',
    data: data
  })
}

// 修改故障报修管理
export function updateManagement1(data) {
  return request({
    url: '/system/management1',
    method: 'put',
    data: data
  })
}

// 删除故障报修管理
export function delManagement1(repairCode) {
  return request({
    url: '/system/management1/' + repairCode,
    method: 'delete'
  })
}
